﻿@model WarSpot.WebFace.Models.RegisterModel
@{
    ViewBag.Title = "Регистрация";
}
<h2>
    Форма регистрации</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
  @Html.ValidationSummary(true, "Ошибка регистрации.")
  <div>
    <fieldset>
      <legend>Регистрация</legend>
      <div class="editor-label">
        @Html.LabelFor(m => m.AccountName)
      </div>
      <div class="editor-field">
        @Html.TextBoxFor(m => m.AccountName)
        @Html.ValidationMessageFor(m => m.AccountName)
      </div>
      <div class="editor-label">
        @Html.LabelFor(m => m.Email)
      </div>
      <div class="editor-field">
        @Html.TextBoxFor(m => m.Email)
        @Html.ValidationMessageFor(m => m.Email)
      </div>
      <div class="editor-label">
        @Html.LabelFor(m => m.Username)
      </div>
      <div class="editor-field">
        @Html.TextBoxFor(m => m.Username)
        @Html.ValidationMessageFor(m => m.Username)
      </div>
      <div class="editor-label">
        @Html.LabelFor(m => m.Usersurname)
      </div>
      <div class="editor-field">
        @Html.TextBoxFor(m => m.Usersurname)
        @Html.ValidationMessageFor(m => m.Usersurname)
      </div>
      <div class="editor-label">
        @Html.LabelFor(m => m.Institution)
      </div>
      <div class="editor-field">
        @Html.TextBoxFor(m => m.Institution)
        @Html.ValidationMessageFor(m => m.Institution)
      </div>
      <div class="editor-label">
        @Html.LabelFor(m => m.Course)
      </div>
      <div class="editor-field">
        @Html.TextBoxFor(m => m.Course)
        @Html.ValidationMessageFor(m => m.Course)
      </div>
      <div class="editor-label">
        @Html.LabelFor(m => m.Password)
      </div>
      <div class="editor-field">
        @Html.PasswordFor(m => m.Password)
        @Html.ValidationMessageFor(m => m.Password)
      </div>
      <div class="editor-label">
        @Html.LabelFor(m => m.ConfirmPassword)
      </div>
      <div class="editor-field">
        @Html.PasswordFor(m => m.ConfirmPassword)
        @Html.ValidationMessageFor(m => m.ConfirmPassword)
      </div>
      <br>
        @Microsoft.Web.Helpers.ReCaptcha.GetHtml(theme: "red", publicKey: "6Lc_oeASAAAAAClxch6-kxkQLJrD-xTzzn6XHbmd")
            <div class="editor-field">
                Регистрацией Вы подтверждаете, что ознакомлены и согласны с @Html.ActionLink("условиями", "EULA", "Document")
                предоставления сервиса.
            </div>
      <p>
        <input type="submit" value="Зарегистрироваться" />
      </p>
    </fieldset>
  </div>
}
